package tpl

const TplModel = `
package {{.PackageName}};

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.psbc.cbcbp.base.atom.AtomData;
import lombok.Data;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.math.BigDecimal;

@Data
@TableName("{{.TableName}}")
public class {{.ModelName}} extends AtomData{
    {{ if .TableIdType }}
    @TableId
    private {{.TableIdType}} {{.TableIdName}};
    {{ end }}
    {{range .ModelFields }}
    @TableField("{{.Column}}")
    private {{.Type}} {{.Property}};
    {{ end }}
}
`
